package com.chang.bootplus.service;

import com.chang.bootplus.base.utils.ApiResponse;
import com.chang.bootplus.entity.MatrixUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.chang.bootplus.po.RegisterPO;
import com.chang.bootplus.po.UserInfoPO;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author chang
 * @since 2022-01-26
 */
public interface MatrixUserService extends IService<MatrixUser> {
    void clearAuthorityInfoByMenuId(Long id);

    MatrixUser getByUsername(String username) ;

    void clearAuthorityInfoByName(String username);

    String getUserAuthorityInfo(Long userId);

    void clearAuthorityInfoByRoleId(Long id);

    ApiResponse<Void> register(RegisterPO po);
}
